Skip to content

Conversation

@harryswift01
Copy link
Contributor

Summary

This PR aims to ensure that there are sufficent checks in place to make sure that the inputs that the users are providing are within a sensible range, this is taken from the comments within issue #83.

Changes

Additional validation checks on the user input:

  • There are now unique validation checks for the inputs used within CodeEntropy to ensure they fall within a sensible range
  • Additional tests have been included to ensure these validation checks are operating as intended.

CodeEntropy input options visability:

  • Fixed a small bug where the inputs were not displayed to the user correctly so the user is able to see clearly what the input configuration into CodeEntropy is.

Resolved issues regarding water_entropy argument:

  • In the previous version the CLI and YAML input didn't allow the user to change the water_entropy argument, this has now been resolved.

Impact

  • This validation checks on the user inputs will ensure that there will be less user error when using CodeEntropy and will lead to less failed runs as there are now sensible checks in place.
  • The water_entropy flag now works as intended and the user is able to select if they want to use the waterEntropy part of the program
  • The user is also able to clearly see the input configurations into CodeEntropy

…t beign ignored:

- within the `arg_config_manager.py` a new function `str2bool` ensures all types of boolean are accpeted
- `setup_argsparse` has been updated to ensure if `property` is a type `bool` it is handled correctly
- additional test cases to ensure that the modified `setup_argsparse` and the `str2bool` function works as intended
@harryswift01 harryswift01 added this to the 1.0.0 release milestone Jun 27, 2025
@harryswift01 harryswift01 requested a review from jimboid June 27, 2025 11:11
@harryswift01 harryswift01 self-assigned this Jun 27, 2025
@harryswift01 harryswift01 linked an issue Jun 27, 2025 that may be closed by this pull request
Copy link
Member

@jimboid jimboid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR reflects the changes described in the PR notes. The bug with blank output has been resolved. The validation on the inputs are a considerably tighter with the tests to back them up. If changes stand up to a manual run test then PR is fit to merge.

@harryswift01 harryswift01 merged commit b72e283 into main Jun 27, 2025
7 checks passed
@harryswift01 harryswift01 deleted the 83-sanity-checks-for-input-parameters branch June 27, 2025 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sanity checks for input parameters

3 participants